#ifndef TESTINGPANEL_H
#define TESTINGPANEL_H

#include <QObject>
#include <QGraphicsView>
#include <QGraphicsPixmapItem>

namespace Core
{

class TestingPanel : public QObject
{
    Q_OBJECT
private:
    QWidget* _screen;
    QWidget* _container;
public:
    explicit TestingPanel(QObject *parent = 0);

public slots:
    void show();
    void hide();

    QWidget* widget();
};

}

class AnimatedPixmap : public QObject
{
     Q_OBJECT
     Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity)
private:
    QGraphicsPixmapItem* _pixmapItem;
public:
    AnimatedPixmap(QGraphicsPixmapItem* pixmapItem) : QObject(pixmapItem->scene()->parent())
    {
        _pixmapItem = pixmapItem;
    }

    qreal opacity()
    {
        return _pixmapItem->opacity();
    }

    void setOpacity(qreal value)
    {
        _pixmapItem->setOpacity(value);
    }
};

#endif // TESTINGPANEL_H
